<%@page import="com.dein.music.model.Music"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	List<Music> musicList = (List<Music>) request
			.getAttribute("musicList");
			int size=musicList.size();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'admin_music.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="css/pages/admin.css">


</head>

<body>

	<div class="layer">

		<div class="logo">
			<span id="dein">Dein.fm</span> <span id="welcome">欢迎，XXX</span>
			<div class="exitBtn"></div>
		</div>

		<div class="manu">
			<a href="page/admin_index" style="color:pink"><div class="home">首页</div></a>
			<div class="guideBtn">管理站内音乐</div>
			<hr>
			<div class="Box">
				<div class="musicBox">
					<p>我管理的歌单</p>
					<br />
					<form>
					<%
					for(int i=0;i<size-1;i++){
					Music music=musicList.get(i);
					%>
					<li><input type="checkbox">&nbsp;<%=music.getMusicId() %>, <%=music.getSinger() %> - <%=music.getMusicName() %></li> <br />
					<%
					}
					 %>
						<%Music music=musicList.get(size-1); %>
						<li><input type="checkbox">&nbsp;<%=music.getMusicId() %>, <%=music.getSinger() %> - <%=music.getMusicName() %>&nbsp;&nbsp;&nbsp;
							<button>删除</button></li> <br /> <br /> <br />
						<button>添加音乐</button>
					</form>
				</div>
			</div>
		</div>
	</div>

	<script type="text/javascript" src="js/frame/jquery-1.6.4.min.js"></script>
	<script type="text/javascript" src="js/admin.js"></script>
</body>
</html>
